﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace XRM.Security.DataAccess.Models
{
    [Table("CertRegisterInfoSystem")]
    public class CertRegisterInfoSystem
    {
        public CertRegisterInfoSystem()
        {
        }

        [Key]
        [Column(Order = 1)]
        public int CertRegisterId { get; set; }
        [Key]
        [Column(Order = 2)]
        public int InfoSystemId { get; set; }

        [ForeignKey("CertRegisterId")]
        public virtual CertRegister CertRegister { get; set; }
        [ForeignKey("InfoSystemId")]
        public virtual InfoSystem InfoSystem { get; set; }
    } 
}